package com.example.user.rpc.facade;

import com.example.apis.order.OrderProvider;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

/**
 * 用户 接入层
 *
 * @author Lv
 * @date 2023/10/02
 */
@Component
public class UserFacade {

    @DubboReference
    private OrderProvider orderProvider;

    /**
     * 测试order服务RPC调用
     *
     * @return
     */
    public String testOrderRpc() {
        return orderProvider.testOrderRpc();
    }
}
